package com.roc.steelend.service.Impl;


import com.roc.steelend.mapper.WriteOffBuyDetailMapper;
import com.roc.steelend.service.WriteOffBuyDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class WriteOffBuyDetailServiceImpl implements WriteOffBuyDetailService {

    @Autowired
    private WriteOffBuyDetailMapper writeOffBuyDetailMapper;

    @Override
    public List<HashMap<String, Object>> buyDetailByPay(BigInteger buyOrderId) {
        return writeOffBuyDetailMapper.buyDetailByPay(buyOrderId);
    }
}
